package XPathProj;

import java.io.IOException;
import java.util.LinkedList;

import XPathProj.XpathNodeListImplementation;
import static org.junit.Assert.*;

import org.junit.Assert;
import org.junit.Test;

public class MutuableNodeListTest {

	@Test(expected = IOException.class)
	public void testItem() {
		XPathProj.XpathNodeListImplementation list = new XpathNodeListImplementation();

		Assert.assertEquals(0, list.getLength());
	}

	@Test
	public void testGetLength() {
		XPathProj.XpathNodeListImplementation list = new XpathNodeListImplementation();
//		list.addNode(null);
		Assert.assertEquals(1, list.getLength());
	}

	@Test
	public void testItemPath() {
		XPathProj.XpathNodeListImplementation list = new XpathNodeListImplementation();		
		Assert.assertEquals("", list.itemPath(1));
	}

	@Test
	public void testMutableNodeList() {
		fail("Not yet implemented");
	}

	@Test
	public void testAddNode() {
		fail("Not yet implemented");
	}

	@Test
	public void testAddNodeListMutableNodeList() {
		XPathProj.XpathNodeListImplementation list = new XpathNodeListImplementation();
//		Assert.assertEquals(true, list.addNode(null));
	}

	@Test
	public void testAddNodeListListOfEntryOfNodeString() {
		fail("Not yet implemented");
	}

	@Test
	public void testRemoveNode() {
		fail("Not yet implemented");
	}

	@Test
	public void testGetPathList() {
		XPathProj.XpathNodeListImplementation list = new XpathNodeListImplementation();
		Assert.assertEquals(new LinkedList<String>(), list.getPathList());		
	}

	@Test
	public void testContainsNode() {
		XPathProj.XpathNodeListImplementation list = new XpathNodeListImplementation();
		Assert.assertEquals(false, list.containsNode(null));
	}

	@Test
	public void testSetNodeList() {
		fail("Not yet implemented");
	}

}
